import request from '@/utils/request'

// 查询业务管理-分类设置列表
export function listComBusinessClassify(query) {
  return request({
    url: '/com/comBusinessClassify/list',
    method: 'get',
    params: query
  })
}

export function allListComBusinessClassify(query) {
  return request({
    url: '/com/comBusinessClassify/allList',
    method: 'get',
    params: query
  })
}

// 查询业务管理-分类设置详细
export function getComBusinessClassify(classifyId) {
  return request({
    url: '/com/comBusinessClassify/' + classifyId,
    method: 'get'
  })
}

// 新增业务管理-分类设置
export function addComBusinessClassify(data) {
  return request({
    url: '/com/comBusinessClassify',
    method: 'post',
    data: data
  })
}

// 修改业务管理-分类设置
export function updateComBusinessClassify(data) {
  return request({
    url: '/com/comBusinessClassify',
    method: 'put',
    data: data
  })
}

// 删除业务管理-分类设置
export function delComBusinessClassify(classifyId) {
  return request({
    url: '/com/comBusinessClassify/' + classifyId,
    method: 'delete'
  })
}

// 置为有效/置为无效
export function effectiveStatus(data) {
  return request({
    url: '/com/comBusinessClassify/effectiveStatus',
    method: 'post',
    data
  })
}
